import styles from '../style.less';

export default (props: { icon: React.ReactNode; text?: string }) => {
  const { icon, text } = props;
  return (
    <div className={styles.tipwrapper}>
      {text && <div className={styles.tip}>{text}</div>}
      {icon}
    </div>
  );
};
